package com.zk.shop.pojo;

/**
 *订单表
 */
public class Order {

    /**
     * 订单状态（0）
     * 商品信息id
     * 收获地址id
     * 运单号
     * 订单编号
     * 用户id
     * 订单状态（0：未付款，1：已付款，2：已发货，3：确认收货，4：在购物车中）
     */

    private Integer oid;
    private Integer pid;
    private Integer aid;
    private String  postno;
    private String orderno;
    private Integer uid;
    private Integer status;

    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", pid=" + pid +
                ", aid=" + aid +
                ", postno='" + postno + '\'' +
                ", orderno='" + orderno + '\'' +
                ", uid=" + uid +
                ", status=" + status +
                '}';
    }

    public Order(Integer pid, Integer aid, String postno, String orderno, Integer uid, Integer status) {
        this.pid = pid;
        this.aid = aid;
        this.postno = postno;
        this.orderno = orderno;
        this.uid = uid;
        this.status = status;
    }

    public Order(Integer oid, Integer pid, Integer aid, String postno, String orderno, Integer uid, Integer status) {
        this.oid = oid;
        this.pid = pid;
        this.aid = aid;
        this.postno = postno;
        this.orderno = orderno;
        this.uid = uid;
        this.status = status;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getPostno() {
        return postno;
    }

    public void setPostno(String postno) {
        this.postno = postno;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
